package com.entfrm.biz.it.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.entfrm.core.base.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.entfrm.core.data.entity.BaseEntity;
import java.util.Date;
import java.util.List;

/**
 * @author kyc
 * @date 2020-08-07 17:56:35
 *
 * @description 资产信息对象 Property
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("it_property")
public class Property extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @Excel(name = "id")
    @TableId
    private Integer id;

    /** 资产编号 */
    @Excel(name = "资产编号")
    private String cowinNum;

    /** 资产品牌 */
    @Excel(name = "资产品牌")
    private String brand;

    /** 资产型号 */
    @Excel(name = "资产型号")
    private String modelNum;

    /** 资产规格 */
    @Excel(name = "资产规格")
    private String specification;

    /** 序列号 */
    @Excel(name = "序列号")
    private String serialNum;

    /** 硬盘容量 */
    @Excel(name = "硬盘容量")
    private String hardDriveCapacity;

    /** 内存容量 */
    @Excel(name = "内存容量")
    private String memoryCapacity;

    /** CPU */
    @Excel(name = "CPU")
    private String cpu;

    /** 入库时间 */
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inTime;

    /** 使用年限 */
    @Excel(name = "使用年限")
    private String workingLife;

    /** 资产分类id */
    private Integer categoryId;

    /** 资产分类父级id */
    private String categoryIds;

    @TableField(exist = false)
    @Excel(name = "分类")
    private String categoryName;

    /** 所属位置 */
    @Excel(name = "所属位置")
    private String location;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

    /** 资产状态 */
    @Excel(name = "资产状态",convertExp = "IN_STOCK=在库,IN_USE=在用,WAIT_SCRAP=待报废,IN_SERVICE=维修中")
    private String status;

    @Override
    public void setRemarks(String remarks) {
        super.remarks = remarks;
    }

    @Override
    public String getRemarks() {
        return super.remarks;
    }
}
